package com.cskaoyan.mapper;

import com.cskaoyan.bean.category.Category;
import com.cskaoyan.bean.category.CategoryExample;

import java.util.List;

import com.cskaoyan.bean.category.vo.L1Vo;
import org.apache.ibatis.annotations.Param;

public interface CategoryMapper {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectAllCategoryL1();

    Integer selectAllCategoryNumber();

    List<L1Vo> selectAllCategoryIdAndName();

    void insertFootprint(@Param("principal") Integer principal, @Param("id") Integer id);
}